package com.yuke.cloud.service.pmc.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.api.pmc.dto.RegionInfoDto;
import com.yuke.cloud.service.pmc.dto.ProdRegionIntroduceDto;
import com.yuke.cloud.service.pmc.dto.ProdRegionRecommendDto;
import com.yuke.cloud.service.pmc.entity.ProdRegionIntroduce;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProdRegionIntroduceMapper extends MyMapper<ProdRegionIntroduce> {
    ProdRegionIntroduce getRecommendDetail();
    ProdRegionIntroduce getDetailByRegionId(Long regionId);
    List<ProdRegionRecommendDto> getAppDetailByCondition(@Param("prodRegionIntroduce") ProdRegionIntroduce prodRegionIntroduce);
    List<ProdRegionIntroduce> getListByCondition(@Param("prodRegionIntroduce") ProdRegionIntroduce prodRegionIntroduce);
    List<ProdRegionIntroduceDto> getListDetailByCondition(@Param("regionIds") List<Long> regionIds, @Param("isRecommend") Integer isRecommend);
    List<Long> getRegionsByIds(List<Long> ids);
    //api
    List<RegionInfoDto> getRegionIntroduceInfoByIds(List<Long> regionIds);
}